﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TopArticles.ascx.cs" Inherits="CustomControls_TopArticles" %>
<div class="popout">
    <div class="t">
    </div>
    <div class="popout-content">
        <h2>
            cele mai noi articole</h2>
        <div style="">
            <asp:Repeater ID="repArticles" runat="server">
                <HeaderTemplate>
                    <table class="AdfusionTable" border="0" cellpadding="1" cellspacing="3">
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="AdfusionTr" valign="top">
                        <td class="AdfusionTd">
                            <a href="<%# Utils.BuildURL(PageType.Articole, ((Model.Articles)Container.DataItem).ID, ((Model.Articles)Container.DataItem).Title) %>">
                                <img style="border-color: black;" src="<%# Utils.GetApplicationSetting(Constants.IMAGES_ARTICLES_URL_PREFIX).Replace("~","") + DataBinder.Eval(Container.DataItem, "ImagePath") %>"
                                    width="75" border="1" height="56" alt="" /></a>
                        </td>
                        <td class="AdfusionTable">
                            <div style="text-align: left; margin-bottom: 5px; background-color: transparent;">
                                <a class="AdfusionA" style="font-family: Arial;" href="<%# Utils.BuildURL(PageType.Articole, ((Model.Articles)Container.DataItem).ID, ((Model.Articles)Container.DataItem).Title) %>">
                                    <%# DataBinder.Eval(Container.DataItem, "Title") %></a><br />
                                <%# Regex.Replace(DataBinder.Eval(Container.DataItem, "Content").ToString(), "<.*?>", string.Empty).Replace("&nbsp;", " ").Truncate(0,90) %></div>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="b">
        <div class="bb">
        </div>
    </div>
</div>
